package com.project.bean;
/**商品订单详情实体类*/
public class GoodsOrderInfoBean {
    private int id;
    /**购买数量*/
    private int num;
    /**成交单价*/
    private int price;
    /**订单详情总价*/
    private int totalPrice;
    /**商品对象*/
    private GoodsBean goodsBean;
    /**商品订单对象*/
    private GoodsOrderBean goodsOrderBean;
    /**订单详情状态*/
    private String state = "未发货";

    public GoodsOrderInfoBean() {

    }

    public GoodsOrderInfoBean(int num, int price,int totalPrice, int goodsBeanId, int goodsOrderBeanId) {
        this.num = num;
        this.price = price;
        this.totalPrice = totalPrice;
        this.goodsBean = new GoodsBean();
        this.goodsBean.setId(goodsBeanId);

        this.goodsOrderBean = new GoodsOrderBean();
        this.goodsOrderBean.setId(goodsOrderBeanId);
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public int getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(int totalPrice) {
        this.totalPrice = totalPrice;
    }

    public GoodsBean getGoodsBean() {
        return goodsBean;
    }

    public void setGoodsBean(GoodsBean goodsBean) {
        this.goodsBean = goodsBean;
    }

    public GoodsOrderBean getGoodsOrderBean() {
        return goodsOrderBean;
    }

    public void setGoodsOrderBean(GoodsOrderBean goodsOrderBean) {
        this.goodsOrderBean = goodsOrderBean;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "GoodsOrderInfoBean{" +
                "id=" + id +
                ", num=" + num +
                ", price=" + price +
                ", totalPrice=" + totalPrice +
                ", goodsBean=" + goodsBean +
                ", goodsOrderBean=" + goodsOrderBean +
                ", state='" + state + '\'' +
                '}';
    }
}
